<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/js/themes/default/easyui.css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/js/themes/icon.css" />
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/ainit.css" type="text/css"></link>
 	<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.4.4.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.easyui.min.1.2.2.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/models/js/jquery.ainit-1.1.0.js"></script>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
	function ad(subtitle,url,icon){
		var jq = top.jQuery;    
	    if (jq("#tabs").tabs('exists', subtitle)){    
	        jq("#tabs").tabs('select', subtitle);    
	    } else {  
	           jq("#tabs").tabs('add',{    
	                              title:subtitle,    
	                              content:'<iframe scrolling="auto" frameborder="0"  src="../test/test2.jsp?flag=xxxxxx" style="width:100%;height:100%;"></iframe>',    
	                              closable:true    
	          });    
	     }    
	}
</script>
</head>
<body>
	<h1>一页面</h1>
	<a href='javascript:;' onclick="ad('test2','','')" >添加父标签</a>
</body>
</html>